<template>
	<view>
		<view class="footer-v2" v-for="(item,index) in 10" :key="index" @click="toDetail(item)">
			<view class="footer-v2-left"> <text class="">{{item+1}}</text></view>
			<view class="footer-v2-center">
				<News></News>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:{
					title: " '五一'假期七座小型客车免费通行全国收费公路",
					times: "澎湃新闻 2022/4/27",
					imgUrl: "https://img-qn.51miz.com/preview/photo/00/01/54/79/P-1547932-2C0515C0.jpg"
				}
			};
		},
		methods: {
			toDetail() {
				
				let json = JSON.stringify(this.list)
				let jsoncode = encodeURIComponent(json)
				uni.navigateTo({
					url: '/pages/index/TravelDetail/TravelDetail?detail=' + jsoncode,
				});
			}
		}
	}
</script>

<style lang="scss">
	.footer-v2 {
		width: 90%;
		height: 20%;
		margin: 20rpx auto;
		display: flex;
		border-bottom: 1px solid #ccc;

		.footer-v2-left {
			width: 15%;
			height: 100%;
			text-align: center;

			text {
				font-size: 35rpx;
				font-weight: bold;
				line-height: 80rpx;
			}

			.te {
				color: red
			}
		}

		.footer-v2-center {
			width: 80%;
			height: 100%;
		}

	}
</style>